<!DOCTYPE html>
<html>
  <head>
    <title>{{title}}</title>
    <link rel="stylesheet" href="/lib/bootstrap/dist/css/bootstrap.min.css">
    <link rel="stylesheet" href="/lib/angular-text-json-editor/json-textarea.css">
    <link rel="stylesheet" href="/stylesheets/style.css" />
  </head>
  {{#if static}}
  <body>
  {{else}}
  <body ng-cloak>
  {{/if}}
    {{#if user}}
    <div class="text-right">
      <span class="label label-info">{{@user.name}}</span>
      <span>
        <a href="/user/index.html?userId={{@user._id}}">账号管理</a>&nbsp;|&nbsp;<a href="/login.html?loginout=true">登出</a>
      </span>
    </div>
    <br>
    {{/if}}
    {{{body}}}
    <script type="text/javascript" src="/lib/angular/angular.min.js"></script>
	  {{#each js}}
		<script type="text/javascript" src="{{this}}"></script>
    {{/each}}
  </body>
</html>
